

const express = require('express')
const interface = require('./utils/server')
const app = express()

// const a = require('./fn_data.js')
// const b = require('./fn_handle.js')

// console.log('node 入口文件')

// 接口方法
interface(app)

const server = app.listen(80, () => {
  var host = server.address().address //访问地址
  var port = server.address().port //访问端口
  // port = port == '::' ? 'localhost' : port
  console.log("服务启动")
  console.log("访问地址为: localhost")
})

